package com.example.demo;

import com.example.demo.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author libo
 * @ClassName HelloController
 * @date 2018/10/17 18:25
 */
@RestController
public class HelloController {
    @Autowired
    private TestService testService;
    @RequestMapping("/")
    public String index() {
        testService.test();
        return "Greetings from Spring Boot!";
    }
}
